package com.nanjia.boot.myflow.order.item.model.entity;

import com.nanjia.boot.common.base.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;

/**
 * 订单商品明细实体对象
 *
 * @author 周洋
 * @since 2025-07-18 14:59
 */
@Getter
@Setter
@TableName("order_item")
public class OrderItem extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    private Long orderId;
    /**
     * SKU ID
     */
    private Long skuId;
    /**
     * 商品名称（下单时）
     */
    private String productName;
    /**
     * 商品规格（下单时）
     */
    private String skuSpecs;
    /**
     * 购买单价
     */
    private BigDecimal price;
    /**
     * 购买数量
     */
    private Integer quantity;


    private Integer completedQuantity;

    private String remark;

    private String itemCode;

    private Long daf0Id;

    private Long daf1Id;

    private Long oodId;

    private Long returnQuantity;

    private Long parentId;
}
